package com.zzy.ymcc.service.impl;

import com.zzy.ymcc.doc.CourseDoc;
import com.zzy.ymcc.repostry.CourseEsRepository;
import com.zzy.ymcc.service.ICourseEsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class CourseEsServiceImpl implements ICourseEsService {

    @Autowired
    private CourseEsRepository courseEsRepository;

    @Override
    public void courseEsAdd(CourseDoc courseDoc) {
        // 此方法可以自动帮你创建索引库和映射
        courseEsRepository.save(courseDoc);
    }
}
